How to insert images using labels in NetBeans IDE, Java? [migrated]

Posted by Vaishnavi Kanduri on Programmers See other posts from Programmers or by Vaishnavi Kanduri
Published on 2013-10-24T13:20:50Z Indexed on 2013/10/24 16:08 UTC
Read the original article Hit count: 193

I'm making a virtual mall using NetBeans IDE 7.3.1

I inserted images using the following steps:

  1. Drag and drop label onto frame
  2. Go to label properties
  3. Click on ellipsis of 'icon' option
  4. Import to project, select desired image
  5. Resize or reposition it accordingly.

Then, I saved the project, copied the project folder into a pendrive, tried to 'Open Project' in mate's laptop, using the same Java Netbeans IDE version.

When I tried to open the frames, they displayed empty labels, without images. What went wrong?

© Programmers or respective owner

Related posts about java

Related posts about object-oriented